package com.mk.shardingjdbcdemo.entity;

import lombok.Data;

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 分片用户表
 */
@Data
@Table(name = "t_user")
@Entity
public class User implements Serializable {

    private static final long serialVersionUID = 8509250168509709151L;
    @Id
    private Long id;
    private Long typeId;
    private String name;
}
